package com.wjbgn.bsolver.server.api;

import com.wjbgn.stater.dto.Result;
import com.wjbgn.bsolver.server.dto.BugRecordDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Description: 
 * Create Date: 2022-04-16T16:09:33.187
 * @author wjbgn
 * @version 1.0
 */
@FeignClient(name = "bsolver-server", path = "/bugrecord", contextId = "base")
public interface BugRecordClient {

    /**
     * 分页列表
     * @param bugRecordDTO
     * @return
     */
    @GetMapping("/pageList")
    Result pageList(BugRecordDTO bugRecordDTO);

    /**
     * list列表
     * @param bugRecordDTO
     * @return
     */
    @GetMapping("/list")
    Result list(BugRecordDTO bugRecordDTO);

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    @GetMapping("/info/getById")
    Result info(@RequestParam("id") Long id);

    /**
     * 新增
     * @param bugRecordDTO
     * @return
     */
    @PostMapping("/save")
    Result save(@RequestBody BugRecordDTO bugRecordDTO);

    /**
     * 更新
     * @param bugRecordDTO
     * @return
     */
    @PostMapping("/update")
    Result update(@RequestBody BugRecordDTO bugRecordDTO);
}